package m.permission.model;

import java.util.Date;

import m.framework.dao.annotation.Column;
import m.framework.dao.annotation.Table;
import m.framework.dao.model.BaseModel;
import m.framework.enums.Gender;

@Table("用户")
public class UserDto extends BaseModel{
	@Column(value="用户Id",length=32,validate="notNull")
	private String userId;
	@Column(value="密码",length=32)
	private String pwd;
	@Column(value="用户代码",length=64,validate="notNull,letterAndPoint")
	private String userCode;
	@Column(value="用户姓名",length=64,validate="word")
	private String userName;
	@Column("性别")
	private Gender gender;
	@Column(value="生日",dateOnly=true)
	private Date birthday;
	@Column(value="邮箱",length=64,validate="email")
	private String email;
	@Column(value="电话",length=64)
	private String phoneNo;
	
	public String getUserId(){
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getPwd(){
		return pwd;
	}
	public void setPwd(String pwd) {
		this.pwd = pwd;
	}
	public String getUserCode(){
		return userCode;
	}
	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}
	public String getUserName(){
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public Gender getGender(){
		return gender;
	}
	public void setGender(Gender gender) {
		this.gender = gender;
	}
	public Date getBirthday(){
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	public String getEmail(){
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getPhoneNo(){
		return phoneNo;
	}
	public void setPhoneNo(String phoneNo) {
		this.phoneNo = phoneNo;
	}
}

